package com.mrjy.video.dao;

import java.util.List;
import java.util.Map;

import com.mrjy.common.entity.VideoVip;
import com.mrjy.video.dto.VideoVipDTO;

public interface IVideoVipDao {

	int insert(VideoVip info);

	List<VideoVipDTO> selectVideoVipWillExpire(int numDate);

	void updateCheckVideoVipExpired();

	List<VideoVipDTO> selectVideoVipExpired();

	int updateVideoVipExpired();
	
	VideoVip selectByUserIdAndVideoId(VideoVip videoVip);
	
	int updateById(VideoVip videoVip);
	
	List<Map<String, Object>> queryUserPaid();

    List<VideoVipDTO> selectHasPurchase(VideoVip videoVip);

    int countHasPurchase(VideoVip videoVip);
}
